package com.hqyj.user.service;

import com.hqyj.user.dto.UserInfo;
import com.hqyj.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.utils.PageUtil;
import com.hqyj.utils.ResultUtils;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sdx2009
 * @since 2022-09-30
 */
public interface UserService extends IService<User> {

    User login(User user);

    ResultUtils sendEmailCode(String userEmail);

    ResultUtils emailLogin(UserInfo userInfo);

    ResultUtils sendSmsCode(String tel);

    ResultUtils smsLogin(UserInfo userInfo);

    //通过姓名查询权限
    ResultUtils queryByName(String userName);

    ResultUtils selectUserByUserName();

    ResultUtils updateUserByUserName(UserInfo userInfo);

    ResultUtils userIndex(UserInfo userInfo);

    ResultUtils updateOtherUser(UserInfo userInfo);

    ResultUtils deleteUser(UserInfo userInfo);

    ResultUtils addUser(UserInfo userInfo);

    ResultUtils selectUser();

    ResultUtils logOut();

}
